package com.afkx.oop.demo8;

/**
 * @ClassName 汽车类
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/4 13:49
 * @Version 1.0
 */
public class Car implements Bell{
    private String name;

    public Car(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public void ring() {
        System.out.println("汽车铃响");
    }
}
